﻿@model IEnumerable<iDMS.Models.Resource>

@{
    ViewBag.Title = "DeleteUnusedRsx";
}

<h2>DeleteUnusedRsx</h2>
Total:
@ViewBag.Total

Unused:
@ViewBag.Unused

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            FileExtension
        </th>
        <th>
            ContentType
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.FileExtension)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ContentType)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ResourceID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ResourceID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ResourceID })
        </td>
    </tr>
}

@Html.ActionLink("Proceed", "DeleteUnusedRsx2");
</table>
